package com.hydl.power.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 定时存储设备电量
 * </p>
 *
 * @author wxx
 * @since 2021-03-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PowerdataTiming implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备号
     */
    @TableField("deviceId")
    private String deviceId;

    /**
     * 创建时间
     */
    private String createtime;

    /**
     * 正向有功总电能
     */
    @TableField("forwardActiveTotalElectricalEnergy")
    private Float forwardActiveTotalElectricalEnergy;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 反向有功总电能
     */
    @TableField("totalReverseActiveEnergy")
    private Float totalReverseActiveEnergy;

    /**
     * 最大pt
     */
    private Float maxPt;

    /**
     * 最小pt
     */
    private Float minPt;

    /**
     * 最小ptf
     */
    private Float maxPtf;

    /**
     * 最小ptf
     */
    private Float minPtf;

    /**
     * 项目id
     */
    private String projectId;

    private Float ptin;

    private Float avgPt;

    private Float load;

    public Float getLoad() {
        return load;
    }

    public void setLoad(Float load) {
        this.load = load;
    }

    public Float getAvgPt() {
        return avgPt;
    }

    public void setAvgPt(Float avgPt) {
        this.avgPt = avgPt;
    }

    public Float getPtin() {
        return ptin;
    }

    public void setPtin(Float ptin) {
        this.ptin = ptin;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public Float getForwardActiveTotalElectricalEnergy() {
        return forwardActiveTotalElectricalEnergy;
    }

    public void setForwardActiveTotalElectricalEnergy(Float forwardActiveTotalElectricalEnergy) {
        this.forwardActiveTotalElectricalEnergy = forwardActiveTotalElectricalEnergy;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Float getTotalReverseActiveEnergy() {
        return totalReverseActiveEnergy;
    }

    public void setTotalReverseActiveEnergy(Float totalReverseActiveEnergy) {
        this.totalReverseActiveEnergy = totalReverseActiveEnergy;
    }

    public Float getMaxPt() {
        return maxPt;
    }

    public void setMaxPt(Float maxPt) {
        this.maxPt = maxPt;
    }

    public Float getMinPt() {
        return minPt;
    }

    public void setMinPt(Float minPt) {
        this.minPt = minPt;
    }

    public Float getMaxPtf() {
        return maxPtf;
    }

    public void setMaxPtf(Float maxPtf) {
        this.maxPtf = maxPtf;
    }

    public Float getMinPtf() {
        return minPtf;
    }

    public void setMinPtf(Float minPtf) {
        this.minPtf = minPtf;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    @Override
    public String toString() {
        return "PowerdataTiming{" +
                "id=" + id +
                ", deviceId='" + deviceId + '\'' +
                ", createtime='" + createtime + '\'' +
                ", forwardActiveTotalElectricalEnergy=" + forwardActiveTotalElectricalEnergy +
                ", deviceName='" + deviceName + '\'' +
                ", totalReverseActiveEnergy=" + totalReverseActiveEnergy +
                ", maxPt=" + maxPt +
                ", minPt=" + minPt +
                ", maxPtf=" + maxPtf +
                ", minPtf=" + minPtf +
                ", projectId='" + projectId + '\'' +
                ", ptin=" + ptin +
                ", avgPt=" + avgPt +
                ", load=" + load +
                '}';
    }
}
